<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>24.弹性布局移动端通⽤菜单</title>
    <style>
      * {
        padding: 0;
        margin: 0;
      }

      body {
        height: 100vh;
        display: flex;
        flex-direction: column;
      }

      main {
        flex: 1;
        background: #f3f3f3;
      }

      footer {
        height: 50px;
        background: #ddd;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        border-top: solid 1px #ccc;
      }

      footer section {
        flex: 1;
        /* background: red; */
        border-right: solid 1px #ccc;
      }

      footer section:last-child {
        border-right: none;
      }
    </style>
  </head>

  <body>
    <main></main>
    <footer>
      <section></section>
      <section></section>
      <section></section>
    </footer>
  </body>
</html>
